Life Expectancy - Human Development Data

This document provides an analysis of Life Expectancy and Human Development Data by country.

Data sources used:

Sample Data Table.
Country Continent Year HDI Life_Expectancy Population
Afghanistan Asia 2002 0.373 56.64 21979923
Afghanistan Asia 2003 0.383 57.25 23064851
Afghanistan Asia 2004 0.398 57.88 24118979
Afghanistan Asia 2005 0.408 58.50 25070798
Afghanistan Asia 2006 0.417 59.11 25893450

Plotly

For the analysis and plotly visualization, We have used three different variables.

  1. Life Expectancy (y axis)

  2. Human Development Index (HDI) (x axis)

  3. Population (bubble size)

Colour refers to country and bubble size is according to Population size.

Below the graph, we have a “play” button which can be used to play the animated plotly and see the yearly trend.

When we hover over one bubble point, we can see all the information on that specific country.

We can use the legend in the right-hand-side to filter countries within a specific continent.

By default, the graph will show all countries in all continents.

If we click one continent, the font letter from that continent will turn grey which means that all countries within that continent will not display on the graph.

If we double-click one continent, we will only see the countries within that continent.

This is very useful in order to compare yearly trend among different countries.

Code, questions and feedback

The code for this article is published in my github account.

Please feel free to reach out for any question or feedback.